package com.gem.config;

import com.gem.dialect.StatusDictDialect;
import com.gem.dialect.TypeDictDialect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:注册方言
 */
@Configuration
public class StatusDialectConfig {
    @Bean
    @ConditionalOnMissingBean
    public StatusDictDialect statusDictDialect(){
        return new StatusDictDialect("自定义的字典方言");
    }

    @Bean
    @ConditionalOnMissingBean
    public TypeDictDialect typeDictDialect(){
        return new TypeDictDialect("自定义的字典方言");
    }
}
